package cn.gcjxsc.repository.salesaman;

import cn.gcjxsc.entity.salesman.SalesmanRecMemberStatics;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SalesmanRecMemberStaticsRepository extends JpaRepository<SalesmanRecMemberStatics, Integer> {

    SalesmanRecMemberStatics findBySalesmanMemberIdAndMemberId(Integer salesmanId, Integer memberId);
    SalesmanRecMemberStatics findBySalesmanMemberIdAndMemberIdAndStoreId(Integer salesmanId, Integer memberId, Integer storeId);

    List<SalesmanRecMemberStatics> findBySalesmanMemberIdAndMemberIdIn(Integer salesmanId, List<Integer> list);
}
